package com.cortex.pineapple.utilities;

import java.util.HashMap;


public class HolderData {
	
	private static HolderData holder;
	private HashMap<String, Object> data;
	
	private HolderData(){
		data = new HashMap<String, Object>();
	}
	public static HolderData getInstance(){
		if(holder == null){
			holder = new HolderData();
		}
		return holder;
	}
	public Object getData(String key){
		return data.get(key);
	}
	public void addData(String key,Object value){
		data.put(key, value);
	}
	public void removeData(String key){
		data.remove(key);
	}
}
